<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" pageEncoding="utf-8"%>
<c:set var="cts" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML>
<html>
  <head>
	<style type="text/css">
		body{
			background: #F5F5F5;
		}
		h1{
			text-align: center;
		}
		table{
			text-align: center;
			margin: 6px auto;
		}
  	</style>
  </head>
  <body>
	<h1>商品添加</h1>
	<form action="${cts}/addProd" enctype="multipart/form-data" method="POST" >
		<table border="1" cellspacing="0" cellpadding="3" width="360px" height="330px">
			<tr>
				<td width="150px">商品名称</td>
				<td align="left"><input type="text" name="name" style="width:200px; height:25px;"/></td>
			</tr>
			<tr>
				<td>商品单价</td>
				<td align="left" height="20px"><input type="text" name="price" style="width:200px; height:25px;"/></td>
			</tr>
			<tr>
				<td>商品种类</td>
				<td align="left" style="width:200px; height:25px;">
					<select name="category" >
						<option value="电子数码">电子数码</option>
						<option value="图书杂志">图书杂志</option>
						<option value="床上用品">床上用品</option>
						<option value="家用电器">家用电器</option>
						<option value="日用百货">日用百货</option>
						<option value="服装服饰">服装服饰</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>库存数量</td>
				<td align="left" ><input type="text" name="pnum" style="width:200px; height:25px;"/></td>
			</tr>
			<tr>
				<td>商品图片</td>
				<td><input type="file" name="imgurl" style="width:200px; height:25px;"/></td>
			</tr>
			<tr>
				<td>描述信息</td>
				<td height="80px"><textarea cols="35" rows="6" name="description" ></textarea></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="添加商品" name="submit"/></td>
			</tr>
		</table>
	</form>
  </body>
</html>
